package cn.znzz.cjm.basic.mapper;


import cn.znzz.cjm.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    //保存
    void save(T t);

    //删除
    void delete(Long id);

    //修改
    void update(T t);

    //根据id查询
    T loadById(Long id );

    //查询所有
    List<T> loadAll();

    //查询总条数
    Long queryCount(BaseQuery query);

    //查询当前的页数
    List<T> queryData(BaseQuery query);
    //批量删除
    void batchRemove(List<Long> ids);
}
